package com.efeichong.lock;

import lombok.Getter;

import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;

/**
 * @author lxk
 * @date 2021/3/24
 * @description 提供spring线程池
 */
@Getter
class ScheduledExecutorProvider {
    /**
     * 定时器线程池，用于清除过期缓存
     */
    public static final ScheduledExecutorService executor = Executors.newSingleThreadScheduledExecutor();
}
